import { StrictMode, Suspense } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import './locale/i18n.ts'
import App from './App.tsx'
import { BrowserRouter } from 'react-router-dom'
import {ThemeContext} from './context/ThemeContext.tsx'

createRoot(document.getElementById('root')!).render(
  <Suspense fallback={<>...路由加载中</>}><BrowserRouter>
  <ThemeContext>
  <StrictMode>
    <App />
  </StrictMode>
  </ThemeContext>
  </BrowserRouter></Suspense>
)
